package src.util;

public class MessageCfg
{
	// ---------------------------------------------------------------------------------------------

	private String						checkSumAlgo	= "MD5";
	private boolean					checkSumVerify	= true;
	private boolean					encode			= false;
	private String						converter		= "UTF-8";

	// ---------------------------------------------------------------------------------------------

	public MessageCfg( boolean checkSumVerify, boolean encode)
	{
		this.checkSumVerify = checkSumVerify;
		this.encode = encode;
	}

	// ---------------------------------------------------------------------------------------------

	public String getCheckSumAlgo( )
	{
		return checkSumAlgo;
	}

	// ---------------------------------------------------------------------------------------------

	public void setCheckSumAlgo( String checkSumAlgo)
	{
		this.checkSumAlgo = checkSumAlgo;
	}

	// ---------------------------------------------------------------------------------------------

	public boolean isCheckSumVerify( )
	{
		return checkSumVerify;
	}

	// ---------------------------------------------------------------------------------------------

	public void setCheckSumVerify( boolean checkSumVerify)
	{
		this.checkSumVerify = checkSumVerify;
	}

	// ---------------------------------------------------------------------------------------------

	public boolean isEncoded( )
	{
		return encode;
	}

	// ---------------------------------------------------------------------------------------------

	public void setEncode( boolean encode)
	{
		this.encode = encode;
	}

	// ---------------------------------------------------------------------------------------------

	public String getConverter( )
	{
		return converter;
	}

	// ---------------------------------------------------------------------------------------------

	public void setConverter( String converter)
	{
		this.converter = converter;
	}

	// ---------------------------------------------------------------------------------------------
}
